package cn.com.w.common.thread.worker;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.time.LocalDateTime;

public class SendDataWorker implements Runnable{

    Logger log = LoggerFactory.getLogger(this.getClass());

    private String data = null;

    public SendDataWorker(String data) {
        super();
        this.data = data;
    }

    @Override
    public void run() {
        // 开始发送数据
        log.info("发送数据:[{}],时间：[{}]", data, LocalDateTime.now());
    }

}
